import axios from 'axios'

const http = axios.create({
  baseURL: '/api/',
  titmeout: 3000
})

// 请求拦截
http.interceptors.request.use(config => {
  //
  config.headers.Authorization = window.localStorage.getItem('openId')
  return config
})

export default http
